using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TaskSystemClient.InternalDialogs
{
    public partial class MessageNotify : Form
    {
        public MessageNotify()
        {
            InitializeComponent();
        }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            Rectangle rect = Screen.PrimaryScreen.WorkingArea;
            Point location = new Point();
            location.X = rect.X + rect.Width - Width - 50;
            location.Y = rect.Y + rect.Height - Height - 50;
            Location = location;
        }

        public string Prompt
        {
            get 
            {
                return lbPrompt.Text;
            }
            set 
            {
                lbPrompt.Text = value;
            }
        }

        public static void Show(string prompt)
        {
            MessageNotify form = new MessageNotify();
            form.Prompt = prompt;
            form.Show();
        }


        private void OnClose(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Close();
        }
    }
}